<?xml version="1.0" encoding="UTF-8"?>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>




        <sec:authorize ifAnyGranted="ROLE_ANONYMOUS">
                <td><a href="<c:url value='/spring/loginForm'/>">Login</a></td>
        </sec:authorize>
        <sec:authorize ifNotGranted="ROLE_ANONYMOUS">
        
<span id="loginstatus">Logged in as: <sec:authentication property="principal.username"/>
                <td><a href="<c:url value='logout'/>">Logout</a></td>
        </sec:authorize>



</span>

<br />
